#include <stdio.h>
#include <math.h>

int main()
{
	int a,b,c;
	scanf("%d %d %d",&a,&b,&c);
	int ret=b*b-4*a*c;
	if(ret>0)
	{
		double x1=(-b+sqrt(ret))/(2.0*a);
		double x2=(-b-sqrt(ret))/(2.0*a);
		printf("x1=%lf x2=%lf",x1,x2);
	}
	else if(ret==0)
	{
		double x1=-b/(2.0*a);
		double x2=-b/(2.0*a);
		printf("x1=%lf x2=%lf",x1,x2);
	}
	else
	{
		double ds=-b/(2.0*a);
		double kf=sqrt(fabs(ret))/(2.0*a);
		printf("x1=%.3lf+%.3lfi x2=%.3lf-%.3lfi",ds,kf,ds,kf);
	}
	return 0;
}